﻿using CatUtils.Utils.Currency;
using CatUtils.Utils.Currency.IoUtils;

using CatUtils.Utils.Helper;
using CatUtilsDll.Utils.Currency.WebUtils;
using System;
using System.Collections.Generic;
using System.Net;

namespace RabbitDownload.Helper
{
    internal class StaticValueOld
    {
        public static string ImgTemp1 { get; set; } = StaticValue.TempPath + "DownloadImg\\";
        public static string UserAgent { get; set; } = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
        public static string MoblieUserAgent { get; set; } = "Mozilla/5.0 (Linux; Android 7.0; PLUS Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36";

        /// <summary>
        /// 下载文件夹
        /// </summary>
        public static string DownloadPath { get; set; } = StaticValue.TempPath + "Download\\";

        /// <summary>
        /// 放置旧的LOG
        /// </summary>
        public static string OldLogPath { get; set; } = StaticValue.TempPath + "OldLog\\";

        /// <summary>
        /// 导出下载列表的flag
        /// </summary>
        public static bool SaveImgListFlag { get; set; } = false;

        /// <summary>
        /// 控制界面微调 宽度
        /// </summary>
        public static int GroupboxWidth { get; set; } = 825;

        /// <summary>
        /// 控制界面微调 高度
        /// </summary>
        public static int GroupboxHeight { get; set; } = 419;

        /// <summary>
        /// 保存list文件的路径
        /// </summary>
        public static string SaveListPath { get; set; } = StaticValue.TempPath + "DownList\\";

        /// <summary>
        /// 自动保存列表
        /// </summary>
        public static bool AutosaveImgListFlag { get; set; } = false;

        /// <summary>
        /// 屏蔽关键词的路径
        /// </summary>
        public static string ExcludePath { get; set; } = StaticValue.BinPath + "ExcludeKey.txt";

        /// <summary>
        /// 屏蔽关键词列表
        /// </summary>
        public static List<string> ExcludeList { get; set; } = FileHelper.ReadAllLine(ExcludePath);

        /// <summary>
        /// 选择器的选择缓存
        /// </summary>
        public static string ComboxSelect { get; set; } = StaticValue.BinPath + "comboxSelect";

        /// <summary>
        /// 保持长效链接的COOKIESWEBCLIENT
        /// </summary>
        internal static CWebclient CookiesWebclient { get; set; } = new CWebclient();
    }
}